package com.legendshop.openportal.sdk.model.request;

import com.legendshop.openportal.sdk.model.BaseRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import static com.legendshop.openportal.sdk.model.constants.ApiPathConstants.QUERY_PROD_LIST_PAGE;

/**
 * @Description: 商品池分页查询
 * @Author lwj
 * @data 2024/6/28
 **/
@Data
@Accessors(chain = true)
@ApiModel(value = "商品分页查询对象")
public class ProdListPageRequest extends BaseRequest {

    private static final long serialVersionUID = 3445103397509254204L;

    @ApiModelProperty(value = "每页大小")
    private Integer pageSize = 10;

    /**
     * 当前页
     */
    @ApiModelProperty(value = "当前页")
    private Integer curPage = 1;

    @ApiModelProperty(value = "类目id")
    private Long categoryId;

    @ApiModelProperty(value = "全局类目id")
    private Long globalCategoryId;

    /**
     * 商品名称
     */
    @ApiModelProperty(value = "商品名称")
    private String prodName;

    /**
     * 商品id
     */
    @ApiModelProperty(value = "商品id")
    private Long prodId;

    @Override
    @ApiModelProperty(hidden = true)
    public String getApiPath() {
        return QUERY_PROD_LIST_PAGE;
    }
}
